package cn.hou.java.designpattern._07observerself;

public class Test01 {
	public static void main(String[] args) {
		WetherStation ws=new WetherStation();
		Person student=new Student("姚振");
		Person worker=new Worker("彭乐");
		//添加需要收听天气的人
		ws.addListener(student);
		ws.addListener(worker);
		ws.startWork();
		
	}

}
